﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="NetDon.OA.Portal.Admin.ChangePassword" %>

<%@ Register Src="~/Controls/RequiredMark.ascx" TagName="Requiredmark" TagPrefix="Ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <NetDon:FormPanel runat="server" ID="FormPanel1" RepeatColumns="1">
                <Items>
                    <NetDon:FormItem HeaderText="旧密码">
                        <ContentTemplate>
                            <asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password" TabIndex="10"></asp:TextBox>
                            <Ucc:Requiredmark ID="Requiredmark2" runat="server" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOldPassword"
                                Display="Dynamic" 
                                ErrorMessage="请输入旧密码" 
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="新密码">
                        <ContentTemplate>
                            <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" TabIndex="20"></asp:TextBox>
                            <Ucc:Requiredmark ID="Requiredmark1" runat="server" />
                                 <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator1"
                            runat="server" ValidationExpression="\w{6,15}" ErrorMessage="请输入6个及以上字符或数字"
                            ControlToValidate="txtNewPassword"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword"
                                Display="Dynamic" SetFocusOnError="True" 
                                ErrorMessage="请输入新密码"></asp:RequiredFieldValidator>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="确认密码">
                        <ContentTemplate>
                            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" TabIndex="30"></asp:TextBox>
                            <Ucc:Requiredmark runat="server" />
                            <asp:RequiredFieldValidator ID="CompareValidator1" runat="server" ControlToValidate="txtConfirmPassword"
                                SetFocusOnError="True" 
                                ErrorMessage="请再次输入密码" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtConfirmPassword"
                                ControlToCompare="txtNewPassword" SetFocusOnError="True" ErrorMessage="两次密码输入不一致"
                                Display="Dynamic"></asp:CompareValidator>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderVisible="true">
                        <ContentTemplate>
                            <div style="margin-top: 10px">
                                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click">
                                </asp:Button>
                            </div>
                        </ContentTemplate>
                    </NetDon:FormItem>
                </Items>
            </NetDon:FormPanel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
